#ifndef HDSHAREDDATA_H
#define HDSHAREDDATA_H

#include "cv.h"
#include "highgui.h"
#include <ctype.h>
#include <QSemaphore>
#include <QVector>
#include "hdcamera.h"
#include "hdobject.h"
#include "hdcamerarenderer.h"
#include "hdcontroller.h"


#define NOOFCAMS		2
#define FPS				25
#define FRAME_WIDTH		320
#define FRAME_HEIGHT	240

extern QList<HDCamera*>			cameras;
extern QList<HDCameraRenderer*>	viewers;
extern QList<HDController*>		controllers;

extern QList<QSemaphore*>		captureReady;
extern QList<QSemaphore*>		captureFinished;

extern QSemaphore				*calibrationFinished;
extern QSemaphore				*unprojectionReady;

extern int						currentCameraIndex;
extern int						currentObjectIndex;
extern int						camerasCount;
extern int						markersCount;

extern bool						bCalibrate;
extern bool						bSnap;
extern bool						bRectify;
extern bool						bCalibrationFinished;

extern CvMat*					_matUnproject;
extern bool						bViewReady;

#endif // HDSHAREDDATA_H
